<?php
   /*框架初始化：过滤参数，用递归的方式过滤；设置报错级别；设置报错级别error_reporting;*/
   //换成正斜线是因为linux不支持反斜线；
   //defined('ACC')||exit('ACC Denied');   
   defined('ACC')||exit('ACC Denied'); 
   define ('ROOT', str_replace('\\', '/', dirname(dirname(__FILE__)) . '/'));
   //echo ROOT;
   define('DEBUG', true);
   date_default_timezone_set('PRC'); 
   /*    
   require(ROOT . 'include/db.class.php');
   require(ROOT . 'include/conf.class.php');
   require(ROOT . 'include/log.class.php');
   require(ROOT . 'include/mysql.class.php'); 
   require(ROOT . 'model/model.class.php'); 
   require(ROOT . 'model/usermodel.class.php');
   */
   
   function __autoload($class){
       if(strtolower(substr($class, -5)) == 'model'){
           require(ROOT . 'model/' . $class . '.class.php');
       }else{
           require(ROOT . 'include/' . $class . '.class.php');
       }
   }
   

   if (defined('DEBUG')){
	   error_reporting(E_ALL ^ E_DEPRECATED);
   }else{
       error_reporting(0);
   }
   //初始化当前的绝对路径。
   

?>
